package com.yx.changdao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yx.changdao.common.entity.ProblemBeatback;
import com.yx.changdao.common.mapper.ProblemBeatbackMapper;
import com.yx.changdao.service.ProblemBeatbackService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: <br/>
 * 问题上报打回记录
 * <p>
 * <br/>
 * @Auther: wangzd
 * @create 2020/04/03 16:51
 */
@Service
public class ProblemBeatbackServiceImpl extends ServiceImpl<ProblemBeatbackMapper, ProblemBeatback> implements ProblemBeatbackService {

    @Override
    public boolean removeByProblemId(Integer id) {
        return remove(new QueryWrapper<ProblemBeatback>().eq(ProblemBeatback.PROBLEM_INFO_ID,id));
    }
}
